package com.shigu.mo.bo.requests;

import org.hibernate.validator.constraints.CreditCardNumber;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * 更改或保存储蓄卡信息
 */
public class UpCashCardInfoRequest extends MoRequest{
    @NotEmpty(message = "身份证号不能为空")
    private String identificationCard;//身份证号
    @NotEmpty(message = "开户名不能为空")
    private String userRealName;//真实姓名
    @NotEmpty(message = "储蓄卡号不能为空")
    @CreditCardNumber(message = "银行卡卡号错误，请核对")
    private String cashCard;//储蓄卡号
    @NotEmpty(message = "开户行不能为空")
    private String cardBank;//开户银行
    @NotEmpty(message = "开户省市不能为空")
    private String cardProv;//开户省市
    @NotNull(message = "请选择区")
    private Long areaId;//区ID不能为空

    @NotEmpty(message = "请输入银行预留手机号码")
    private String bankTelephone;//银行预备留信息

    public String getIdentificationCard() {
        return identificationCard;
    }

    public void setIdentificationCard(String identificationCard) {
        this.identificationCard = identificationCard;
    }

    public String getUserRealName() {
        return userRealName;
    }

    public void setUserRealName(String userRealName) {
        this.userRealName = userRealName;
    }

    public String getCashCard() {
        return cashCard;
    }

    public void setCashCard(String cashCard) {
        this.cashCard = cashCard;
    }

    public String getCardBank() {
        return cardBank;
    }

    public void setCardBank(String cardBank) {
        this.cardBank = cardBank;
    }

    public String getCardProv() {
        return cardProv;
    }

    public void setCardProv(String cardProv) {
        this.cardProv = cardProv;
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public String getBankTelephone() {
        return bankTelephone;
    }

    public void setBankTelephone(String bankTelephone) {
        this.bankTelephone = bankTelephone;
    }
}
